home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
help_ai
/
isinf
< prev
next >
Wrap
Text File
|
1995-02-18
|
607b
|
28 lines
isinf:
Syntax: isinf ( A )
Description:
isinf returns TRUE (1) if A is Infinity (according to
IEEE-754). If A is a vector or a matrix the test is performed
element-by-element, and a matrix the same size as A is
returned.
Infs can usually be created by attempting to divide by zero.
Example:
> a = [1, 2, 3; 4, 5, inf(); 7, 8, 9]
a =
1 2 3
4 5 inf
7 8 9
> isinf (a)
0 0 0
0 0 1
0 0 0
See Also: isnan, finite